<html> <head> <script type="text/javascript"> function message() {alert("This alert box was called when the page was loading")} </script> </head> <body [...]="message()"> </body></html>